<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="ck" uri="http://ckeditor.com"%>  
<html>
<head>
<title>网络新闻应急性管理系统</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/res/style/common.css">
<link rel="stylesheet" type="text/css" href="/res/style/admin.css">
<link rel="stylesheet" type="text/css" href="/res/style/addUser.css">
<script type="text/javascript" src="/res/script/menu.js"></script>
</head>

<body onload="addMenu();">
	<div class="MainDiv">
		<div class="AjustDiv">
			<jsp:include page="/page/admin/adminHeader.jsp"></jsp:include>
			<jsp:include page="/page/admin/adminLeft.html"></jsp:include>
			<!-- 内容部分 -->
			<div class="ContentDiv">
				<div class="DetailDiv">
					<form action="userManage.action?act=add" method="post">
						
						<div class="ItemDiv">
							<h2>用户信息录入</h2>
						</div>
						<div class="ItemDiv">
							<table>
								<tr>
									<td colspan="6" style="text-align: left;">
										<h2>基本信息：</h2>
									</td>
								</tr>
								<tr>
									<td>
										<label>账号：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.username">
									</td>
									
									<td>
										<label>密码：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="password" name="user.password">
									</td>
									
									<td>
										<label>昵称：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.nickname">
									</td>
								</tr>
								<tr>
									<td>
										<label>等级：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" disabled="disabled" type="text" name="user.grade">
									</td>
									
									<td>
										<label>主页：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.homepage">
									</td>
									
									<td>
										<label>注册时间：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" disabled="disabled" type="date" name="user.registerTime">
									</td>
								</tr>
								<tr>
									<td>
										<label>状态：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.state">
									</td>
									
									<td>
										<label>属性：</label> 
									</td>
									<td>
										<select name="user.property">
											<option value="0">用户属性</option>
											<option value="1">普通用户</option>
											<option value="2">普通会员</option>
											<option value="3">高级会员</option>
									</select>
									</td>
									<td>
										<label>角色：</label> 
									</td>
									<td>
										<select name="user.role.id">
											<option value="0">用户角色</option>
											<option value="1">高级管理员</option>
											<option value="2">管理员</option>
											<option value="3">新闻采集员</option>
											<option value="4">VIP用户</option>
											<option value="5">普通用户</option>
										</select>
									</td>
								</tr>
							</table>
						</div>
						<div class="ItemDiv">
							<table>
								<tr>
									<td colspan="6" style="text-align: left;">
										<h2>详细信息：</h2>
									</td>
								</tr>
								<tr>
									<td>
										<label>姓名：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.name">
									</td>
									<td>
										<label>生日：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" name="user.userInfo.birthday" type="date" />
									</td>
									<td>
										<label>个性签名：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.signature">
									</td>
								</tr>
								<tr>
									<td>
										<label>故乡：</label> 
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.nativePlace.country">
									</td>
									<td>
										<label>所在地：</label> 
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.location.country" >
									</td>
									<td>
										<label>性别：</label>
									</td>
									<td>
										<select
											name="user.gender">
												<option value="0">保密</option>
												<option value="1">男</option>
												<option value="2">女</option>
										</select>
									</td>
								</tr>
								
								<tr>
									<td>
										<label>邮箱：</label> 
									</td>
									<td>
										<input class="EditTextStyle_1" type="email" name="user.userInfo.email">
									</td>
									<td>
										<label>电话：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="tel" name="user.userInfo.phone">
									</td>
									<td>
										<label>QQ：</label> 
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.qq">
									</td>
								</tr>
						
								<tr>
									<td>
										<label>工作单位：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.assistInfo.workUnit">
									</td>
									<td>
										<label>职业：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.assistInfo.profession">
									</td>
									<td>
										<label>职位：</label>
									</td>
									<td>
										<input class="EditTextStyle_1" type="text" name="user.userInfo.position">
									</td>
								</tr>
							</table>
						</div>
						<div class="ItemDiv">
							<div style="text-align:left;padding:5px;">
								<button type="submit" onclick="">提交</button>
								<button type="reset" onclick="">重置</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="/page/admin/adminFooter.html"></jsp:include>
</body>
</html>
